package org.jeecg.modules.pos.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.rooms.entity.CesGoods;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: pos_order_goods
 * @Author: jeecg-boot
 * @Date:   2023-04-13
 * @Version: V1.0
 */
@Data
@TableName("pos_booking_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pos_booking_order对象", description="pos_booking_order")
public class PosBookingOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**关联租户*/
    /**关联酒店*/
    @Excel(name = "关联酒店", width = 15)
    @ApiModelProperty(value = "关联酒店")
    private String hotelId;
    /**单据号*/
    @Excel(name = "单据号", width = 15)
    @ApiModelProperty(value = "单据号")
    private String code;
    /**押金*/
    @Excel(name = "押金", width = 15)
    @ApiModelProperty(value = "押金")
    private BigDecimal deposit;
    /**每桌人数*/
    @Excel(name = "每桌人数", width = 15)
    @ApiModelProperty(value = "每桌人数")
    private Integer peopleNum;
    /**押金*/
    @Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别")
    private Integer sex;
    /**客人姓名*/
    @Excel(name = "客人姓名", width = 15)
    @ApiModelProperty(value = "客人姓名")
    private String customerName;
    /**客人姓名*/
    @Excel(name = "客户来源", width = 15)
    @ApiModelProperty(value = "客户来源")
    private Integer customerType;
    /**电话*/
    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String phone;
    /**pos类型*/
    @Excel(name = "pos类型", width = 15)
    @ApiModelProperty(value = "pos类型")
    private String posType;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**会员id*/
    @Excel(name = "会员id", width = 15)
    @ApiModelProperty(value = "会员id")
    private String vipId;
    /**状态*/
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "预约状态。1未到店，2已到店，3已退款，4已逾期")
    private Integer state;
    /**预约时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约时间")
    private Date arriveTime;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(exist = false)
    private List<PosOrderGoods> posOrderGoodList;
    @TableField(exist = false)
    private List<PosOrderGoodsDetail> posOrderGoodsDetailList;
    @TableField(exist = false)
    private List<String> tableIds;
    @TableField(exist = false)
    private List<PosTable> tableList;


}
